<h2>Grupy</h2>
<div style="background: black">
  <%= link_to_remote("Pokaż",
    :url =>{ :controller => "groups", :action => "panel_show" }) %> | 
  <%= link_to_remote("Schowaj",
    :url =>{ :controller => "groups", :action => "panel_hide" }) %> | 
  <%= link_to_remote("Nowa grupa",
    :url =>{ :controller => "groups", :action => "panel_create_show" }) %>
</div>
<div id="panel"></div>

<div id="group_errors" class="errors"></div>    

<div id="panel_create"></div>

<div id="print_costs">
  <h2>Aktualne ceny druków</h2>
  <ul>
    <li>Czarno biały: <b><%= number_to_currency(Settings.first.price_bw) %></b></li>
    <li>Kolor: <b><%= number_to_currency(Settings.first.price_color) %></b></li>
  </ul>
  <% form_for :setting, @setting,
    :url => { :controller => 'admin', :action => 'update_prices'} do |f| %>
    <%= f.error_messages %>
    <%= f.select :price_bw, [['10gr', 0.1], ['15gr', 0.15], ['20gr', 0.2],
      ['25gr', 0.25], ['30gr', 0.3]].map, :label => 'Cena jednej kartki Cz/B' %>
    <%= f.select :price_color, [['40gr', 0.4], ['50gr', 0.5], ['60gr', 0.6],
      ['70gr', 0.7]].map, :label => 'Cena jednej kartki kolorowej' %>
    <%= f.submit "Zmień koszty druku" %>
  <% end %>
</div>
